package com.jdone.compus.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
@ApiModel("退款请求 DTO")
public class RefundRequestDto {
    @ApiModelProperty(value = "支付平台分配的场景id", required = true, example = "100100")
    @NotBlank
    private String myapp_id;

    @ApiModelProperty(value = "签名", required = true)
    @NotBlank
    private String sign;

    @ApiModelProperty(value = "随机字符串", required = true)
    @NotBlank
    private String nonce_str;

    @ApiModelProperty(value = "商户订单号（outTradeNo 与 transactionId 二选一）")
    private String out_trade_no;

    @ApiModelProperty(value = "商户退款单号", required = true, example = "292283829301")
    @NotBlank
    private String out_refund_no;

    @ApiModelProperty(value = "退款金额（分）", required = true)
    @NotNull @Min(1)
    private Integer refund_amount;

    @ApiModelProperty(value = "退款原因", required = true, example = "客户退货")
    @NotBlank
    private String refund_desc;
}

